package com.bdqn.t350.ch01.config;


import com.bdqn.t350.ch01.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

//@Controller
//@Service
//@Repository
@Component
//@Configuration
//@Import()
public class BeanConfig {

    @Bean
    public User zhangsan() {
        return new User(2, "zhangsan");
    }

    @Bean
    public User lisi() {
        return new User(3, "lisi");
    }
}
